<template>
	<view class="">
		<view class="mt-5" v-if="u_loadmore">
			<u-loadmore status="loading" icon-type="circle" />
		</view>
		<view v-else>
			<view class="m-2 py-3 pl-3 bg-white rounded-20 d-flex j-sb a-center" @click="promotionTo">
				<view class="">
					<view class="font-35 font-weight">促销商品</view>
					<view class="font-28 text-666">限时活动，刺激活跃度</view>
					<view class="font-28 text-red">点击查看>></view>
				</view>
				<view class="">
					<image class="active_img" src="../../static/images/activity/promotion.png" mode=""></image>
				</view>
			</view>
			<view class="m-2 py-3 pl-3 bg-white rounded-20 d-flex j-sb a-center" @click="cashTo">
				<view class="">
					<view class="font-35 font-weight">现金减免</view>
					<view class="font-28 text-666">组合购买，买的越多减的越多</view>
					<view class="font-28 text-red">点击查看>></view>
				</view>
				<view class="">
					<image class="active_img" src="../../static/images/activity/money.png" mode=""></image>
				</view>
			</view>
		</view>
		<!-- <scroll-view scroll-y="true" :style="{height: scrollHeight}">
		</scroll-view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				u_loadmore:true, // 加载中
			}
		},
		methods: {
			// 促销商品
			promotionTo(){
				uni.navigateTo({
					url:'/pagesA/promotion/promotion'
				})
			},
			// 现金减免
			cashTo(){
				uni.navigateTo({
					url:'/pagesA/cash/cash-remission'
				})
			}
		},
		onLoad() {
			this.u_loadmore=false 
		}
	}
</script>

<style>
	.active_img{
		width: 250upx;
		height: 180upx;
	}

</style>
